| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | export function getOptions (optionContainer) { |
||
| 8 | export function acceptCookies ($container, cookieName, expireDays) { |
||
| 9 | return function (e) { |
||
| 10 | const date = new Date() |
||
| 11 | date.setTime(date.getTime() + (expireDays * 24 * 60 * 60 * 1000)) |
||
| 12 | document.cookie = cookieName + '=true; expires=' + date.toGMTString() |
||
| 13 | $container.remove() |
||
| 14 | } |
||
| 15 | } |
||
| 16 | |||
| 37 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.